package com.itheima.sh.feign.fallback;

import com.itheima.sh.feign.FeignApi;
import com.itheima.sh.pojos.User;
import org.springframework.stereotype.Component;

/**
 * @author balisong_fcs
 * @date 2020/12/20 22:12
 */
@Component
public class UserFeignFallbackApi implements FeignApi {
    @Override
    public User queryById(String username) {
        User user = new User();
        user.setName("暂停服务..-UserFeignFallbackApi ");
        return user;
    }
}
